package com.googlecode.gwtbb.server.intermediate.user;

import com.googlecode.gwtbb.client.shared.entity.user.User;
import com.googlecode.gwtbb.client.shared.entity.user.UserBase;
import com.googlecode.gwtbb.client.shared.validation.Failure;
import com.googlecode.gwtbb.client.shared.validation.FieldId;

import java.util.Map;

/**
 * @author Abraham Grief
 * @version $Id$
 * @since Jun 5, 2008
 */
public interface PrivilegeChecker {
	User checkPrivilege(Map<FieldId, Failure> failures, Long userId, String sessionId, UserBase.PrivilegeLevel privilegeLevel);
}
